﻿using Elasticsearch.Net;
using Nest;

namespace Journeo_backend.Configuration
{
    public class ElasticSearchConfig
    {
        public static IElasticClient CreateClient(string url)
        {
            var settings = new ConnectionSettings(new Uri(url))
                   .DefaultIndex("attractions");
            var client = new ElasticClient(settings);
            return client;
        }
    }
}
